xfi:decimals

xs:anyAtomicType=xfi:decimals( $item as schema-element(xbrli:item))

Last updated on 05-04-2008 at 12:12:00.

Return the actual or the inferred decimals of a numeric fact.

XBRL 2.1 Section 4.6.5

OIM Status

Deprecated - this function may be used in OIM-compatible Formula Rules, but its use is not recommended.

Parameters

Name Type Details
item schema-element(xbrli:item) The numeric item that precision is required for.

Output

Type: xs:anyAtomicType

Return the actual or the inferred decimals of a numeric fact. For "INF" the returned type is xs:string. For numeric precision value, the returned type is xs:integer.

Errors

Code Details
xfie:ItemIsNotNumeric This error is thrown if the item is not reported with a precision or decimals attribute (except for fraction, which returns INF to correspond to base spec).

Conformance suite

80154 xfi.decimals testcase.xml [ download ]

Owners

Name Affiliation Email Start End
Herm Fischer UBMatrix / Mark V Systems fischer@markv.com 05-04-2008 at 12:12:00

Revisions

Name On Details
Herm Fischer 05-04-2008 at 12:12:00 Defined the function.